GtkInfoBar: Set a more accurate accessible role
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jan 2014 22:44:14 +0000 (17:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jan 2014 22:44:14 +0000 (17:44 -0500)
And update the a11y tests to match. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721042

gtk/gtkinfobar.c
testsuite/a11y/infobar.txt

index 8e99b1683d6e25da0e6a6ccc83c3ff6e27cb929a..74e9b78625f68bf76534493a8fde570238f1bad6 100644 (file)
@@ -1184,7 +1184,7 @@ gtk_info_bar_set_message_type (GtkInfoBar     *info_bar,
         {
           const char *name = NULL;
 
-          atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
+          atk_object_set_role (atk_obj, ATK_ROLE_INFO_BAR);
 
           switch (message_type)
             {
@@ -1213,9 +1213,7 @@ gtk_info_bar_set_message_type (GtkInfoBar     *info_bar,
             }
 
           if (name)
-            {
-              atk_object_set_name (atk_obj, name);
-            }
+            atk_object_set_name (atk_obj, name);
         }
 
       if (type_class[priv->message_type])
index 2e977ac3e52cab480d95c23ff5c3222200ebf8fc..47dedcda66d025b1470387cd29085be247a0a4fd 100644 (file)
@@ -7,7 +7,7 @@ window1
   layer: window
   alpha: 1
   bar1
-    "alert"
+    "info bar"
     parent: window1
     index: 0
     name: Information